//
//  JZCameraShootingButton.h
//  JZShortVideo
//
//  Created by liujz on 31/05/2018.
//  Copyright © 2018 liujz. All rights reserved.
//

#import <UIKit/UIKit.h>

@class JZCameraShootingButton;
//类型枚举
enum {
    PhotoType,
    VideoType
};
typedef NSInteger shootingType;

@protocol shootingButtonDelegate <NSObject>

/**
 录制或者拍照完毕调用方法

 @param button  ShootingButton
 @param type  录制的类型
 */
- (void)shootingStop:(JZCameraShootingButton *)button shootingType:(shootingType)type;

/**
 录制或者拍照开始调用方法
 
 @param button  ShootingButton
 @param type  录制的类型
 @param value 进度值
 */
- (void)shootingStarting:(JZCameraShootingButton *)button shootingType:(shootingType)type progress:(CGFloat)value;

@end

@interface JZCameraShootingButton : UIView

@property(nonatomic, weak) id<shootingButtonDelegate> shootingButtonrDelegate;

+ (JZCameraShootingButton *)getShootingButtonWithTapEnable:(BOOL)tapEnable LongPressEnable:(BOOL)longPressEnable;

@end


